package com.cn.xiaonuo.sys.modular.images;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_images")
public class Images {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 名字
     */
    private String name;
    /**
     * 排名
     */
    private Integer num;
    /**
     * 图片url
     */
    private String imageurl;
    /**
     * 点击跳转的url
     */
    private String url;

    private String username;

    private type type;

    private Long userid;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public enum type{
        INDEX(1,"首页轮播图"),WIKI(2,"禁毒百科轮播图");

        type(int i, String s) {

        }
    }
}
